﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace e_yayincilik_webproject.DBclass
{

    [DataContract]
    public class AnketDBTO
    {
        [DataMember]
        public string AnketID { get; set; }

        [DataMember]
        public string MakaleID { get; set; }

        [DataMember]
        public string HakemID { get; set; }

        [DataMember]
        public string Sorular { get; set; }

        public AnketDBTO addAnketDBTO(string AnketID,string HakemID,string MakaleID,string Sorular) {
            AnketDBTO anket = new AnketDBTO();
                anket.AnketID=AnketID;
                anket.HakemID=HakemID;
                anket.MakaleID=MakaleID;
                anket.Sorular = Sorular;
                return anket;
        }

        public AnketDBTO editAnketDBTO(AnketDBTO anket,string HakemID, string MakaleID, string Sorular)
        {
            anket.HakemID = HakemID;
            anket.MakaleID = MakaleID;
            anket.Sorular = Sorular;
            return anket;
        }

    }
}